#pragma once

#if (!defined(ROCK_LIB) && !defined(ROCK_LINUX_PLATFORM))
// ROCK is used as DLL
#define ROCK_DLLEXPORT __declspec(dllexport) 
#define ROCK_DLLIMPORT __declspec(dllimport) 
#else 
#define ROCK_DLLEXPORT 
#define ROCK_DLLIMPORT
#endif

#ifdef ROCK_EXPORTS
#define ROCK_API ROCK_DLLEXPORT  
#else 
#define ROCK_API ROCK_DLLIMPORT 
#endif

#ifdef __cplusplus 
extern "C" {
#endif
    int ROCK_API ffmpeg_frame(const char* inputFile, int frameIndex, int(*func)(int height, int width, char *data));
#ifdef __cplusplus
}
#endif
